export default function (state = {list: [], index: -1}, action) {
    switch (action.type) {
        case 'init': {
            return {...action.data};
        }
        default:
            return state;
    }
}
